<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Radiator Information</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<!-- 用户访问菜单路径 -->
	<jsp:include page="/resources/usertrace/common-uservisit-reference.jsp" />
  </head>
  
  <body>
  	<div class="content_all">
  		<!--导航条-->
  		<div class="insertinfo_table">
      		<table width="100%" border="0" cellspacing="0" cellpadding="0">
        		<tr>
          			<th>Project：</th>
          			<td><s:property value="project.projectName" /></td>
          			<th>District：</th>
          			<td><s:property value='community.communityName' /></td>
        		</tr>
        		<tr>
          			<th>Building：</th>
		          	<td><s:property value='building.buildingName' /></td>
		          	<th>Heat User：</th>
          			<td><s:property value='heatRoom.houseNo' />(<s:property value='heatRoom.roomOwner' />)</td>
        		</tr>
        		<tr>
        			<th>Radiator No.：</th>
		          	<td><s:property value='heatSinker.sinkNo' /></td>
		          	<th>Radiator Type：</th>
		          	<td><s:property value='heatSinker.sinkType' /></td>
        		</tr>
        		<tr>
		          	<th>Radiator Brand：</th>
		          	<td><s:property value='heatSinker.brand' /></td>
          			<th>Radiator Height：</th>
		          	<td><s:property value='heatSinker.sinkHeight' /> mm</td>
        		</tr>
        		<tr>
        			<th>Radiator Width：</th>
		          	<td><s:property value='heatSinker.sinkWidth' /> mm</td>
		          	<th>Radiator Length：</th>
		          	<td><s:property value='heatSinker.sinkLength' /> mm</td>
        		</tr>
        		<tr>
          			<th>Radiator Central Distance：</th>
		          	<td><s:property value='heatSinker.sinkCenDis' /> mm</td>
		          	<th>Power Calculation of Each Fin：</th>
		          	<td><s:property value='heatSinker.calPower' /> W</td>
        		</tr>
        		<tr>
		          	<th>Radiator Fins：</th>
		          	<td><s:property value='heatSinker.pieceNum' /></td>
		          	<th>Whether a cover existing：</th>
		          	<td>
		          		<s:if test="heatSinker.isHasHat == 1">Yes</s:if>
		          		<s:if test="heatSinker.isHasHat == 2">No</s:if>
		          	</td>
        		</tr>
        		<tr>
		          	<th>Whether involved in allocation：</th>
		          	<td>
		          		<s:if test="heatSinker.isShare == 1">Yes</s:if>
		          		<s:if test="heatSinker.isShare == 2">No</s:if>
		          	</td>
		          		<th>Building Function：</th>
		          	<td>
		          		<s:if test="heatSinker.houseFunction == 1">Living room</s:if>
		          		<s:if test="heatSinker.houseFunction == 2">bedroom</s:if>
		          		<s:if test="heatSinker.houseFunction == 3">kitchen</s:if>
		          		<s:if test="heatSinker.houseFunction == 4">toilet</s:if>
		          		<s:if test="heatSinker.houseFunction == 5">terrace</s:if>
		          		<s:if test="heatSinker.houseFunction == 6">other</s:if>
		          	</td>
        		</tr>
        		<tr>
		          	<th>Power Correction Factor(Kq)：</th>
		          	<td><s:property value='heatSinker.kqFactor' /></td>
		          	<th>Low Temperature Correction Factor(Kt)：</th>
		          	<td><s:property value='heatSinker.ktFactor' /></td>
        		</tr>
        		<tr>
		          	<th>Coupling Correction Factor(Kc)：</th>
		          	<td><s:property value='heatSinker.kcFactor' /></td>
		          	<th>Temperature Control Mode：</th>
		          	<td><s:property value='heatSinker.tmpControlMode' /></td>
        		</tr>
        		<tr>
		          	<th>Installation personnel：</th>
		          	<td><s:property value='heatSinker.installName' /></td>
		          	<th>Installation Time：</th>
		          	<td><s:date name='heatSinker.installTime' format='yyyy-MM-dd' nice='false' /></td>
        		</tr>
        		<tr>
		          	<th>Recorder：</th>
		          	<td><s:property value='heatSinker.recordName' /></td>
		          	<th>Installation Picture：</th>
		          	<td>
		          		<script type="text/javascript">
			          		function downloadAttach(fileMappingUID) {
	            				window.location = path + "beshs/fileMappingAction!downloadAttachFile.do?fileMappingUID="+fileMappingUID+"&date="+new Date();
	            			}
		          		</script>
		          		<p class='fileName_load_txt'>
		          		    <c:if test="${attachFileMap != null }">
		          		       <a href="javascript:downloadAttach('<s:property value='attachFileMap.id' />')"><s:property value="attachFileMap.orFilename" />.<s:property value="attachFileMap.fileType" /></a>
		          		    </c:if>
            			</p>
		          	</td>
        		</tr>
        		<tr>
          			<th>Remark：</th>
          			<td colspan="3" style="white-space:normal; word-break:break-all; word-wrap:break-word;">
          				<s:property value='heatSinker.remark' />
          			</td>
        		</tr>
       	 		<tr>
          			<td colspan="4" align="center" style="border:none;">
          				<script type="text/javascript">
          					$(function() {
          						$("input[name='okConfirmBtn']").click(function() {
          							window.close();
          						});
          					});
          				</script>
          				<input name="okConfirmBtn" type="button" value="Return" onclick="javascript:parent.layer.close( parent.layer.getFrameIndex(window.name));" class="s_btn" />
            		</td>
        		</tr>
      		</table>
  		</div>
	</div>
	<div class="clear"></div>
  </body>
</html>
